@model SecurityGuard.ViewModels.LogOnViewModel
@{
    ViewBag.Title = "LogOn";
}
<h2>
    Log On</h2>
<p>
    Please enter your user name and password. @Html.ActionLink("Register", "Register")
    if you don't have an account.
</p>

@using (Html.BeginForm())
{
    @Html.BootstrapValidationSummary(false, true, "Please fix the following errors")
    <fieldset>
        <legend>Log On Credentials</legend>
        <div class="clearfix">
            @Html.LabelFor(model => model.UserName)
            <div class="input">
                @Html.EditorFor(model => model.UserName)
                <span class="help-inline">@Html.ValidationMessageFor(model => model.UserName)</span>
            </div>
        </div>
        <div class="clearfix">
            @Html.LabelFor(model => model.Password)
            <div class="input">
                @Html.EditorFor(model => model.Password, new { disabled = true })
                <span class="help-inline">@Html.ValidationMessageFor(model => model.Password)</span>
            </div>
        </div>
        <div class="clearfix">
            @Html.LabelFor(model => model.RememberMe)
            <div class="input">
                @Html.EditorFor(model => model.RememberMe)
                <span class="help-inline">@Html.ValidationMessageFor(model => model.RememberMe)</span>
            </div>
        </div>
        <br />
        <div class="clearfix">
            <div class="input">
                <input type="submit" value="Log On" class="btn primary" />
            </div>
        </div>
        @if (Model.EnablePasswordReset)
        {
            <br />
            <div class="clearfix">
                <div class="input">
                    <p>@Html.ActionLink("Forgot Password?", "ForgotPassword")</p>
                </div>
            </div>
        }
    </fieldset>
}
